<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>

    </style>
</head>
<body>
<script>
    window.onload = function(){
        setInterval(function(){
            console.log(document.documentElement.clientHeight);
        },500);
    };
</script>
</body>
</html>